<?php include PATH_VIEW . 'gongyong.php'; ?>
<title>查询菜单 - 后台管理</title>
<!--<div class="all_main">
    <div class="module_left">
        <dl class="small_module">
            <dt onclick="dianji(1)">后台菜单管理</dt>
            <dd id="bb1" style='display: block;'>
                <a href="index.php?C=Xitong&A=menuAdd">添加后台菜单</a>
                <a href="index.php?C=Xitong&A=menuList" class="bg_co">后台菜单列表</a>
            </dd>
        </dl>
        <dl class="small_module">
            <dt onclick="dianji(2)">后台菜单分组管理</dt>
            <dd id="bb2">
                <a href="#">添加后台菜单分组</a>
                <a href="#">后台菜单分组列表</a>
            </dd>
        </dl>
        <dl class="small_module">
            <dt onclick="dianji(3)">特殊权限类别管理</dt>
            <dd id="bb3">
                <a href="#">添加特殊权限类别</a>
                <a href="#">特殊权限类别列表</a>
            </dd>
        </dl>
        <dl class="small_module">
            <dt onclick="dianji(4)">特殊权限管理</dt>
            <dd id="bb4">
                <a href="#">添加特殊权限</a>
                <a href="#">特殊权限列表</a>
            </dd>
        </dl>
        <dl class="small_module">
            <dt onclick="dianji(5)">特殊权限分组管理</dt>
            <dd id="bb5">
                <a href="#">添加特殊权限分组</a>
                <a href="#">特殊权限分组列表</a>
            </dd>
        </dl>
        <dl class="small_module">
            <dt onclick="dianji(6)">账户管理</dt>
            <dd id="bb6">
                <a href="#">添加账户</a>
                <a href="#">账户列表</a>
                <a href="#">个人信息维护</a>
                <a href="index.php?C=Xitong&A=myInfo&way=P">修改个人密码</a>
            </dd>
        </dl>
    </div>
</div>-->
<div class="all_main">
    <div class="module_right">
        <dl>
            <dt>查询后台菜单
            <a href="#" onclick="dianji(17)">[关闭/展开]</a>
            </dt>
            <dd id="bb17" style="color: black;">
                <form name="form1" method="get" onsubmit="return checkSousuo()">
                    <input type="hidden" name="C" value="<?php echo trim($_GET['C']); ?>" />
                    <input type="hidden" name="A" value="<?php echo trim($_GET['A']); ?>" />
                    <input type="hidden" name="way" value="S" />
                    请输入查询关键字：<input class="changdu" type="text" name="query" id="query" value="<?php echo $keywords; ?>" onclick="huoqu()" onblur="shiq()" />
                    <input type="submit" class="style_input" name="yes" value="搜索" />
                    <span id="pandan">要求至少输入两个字符</span>
                </form>
            </dd>
        </dl>
    </div>
    <div class="module_right_bottom">
        <dl>
            <dt>后台菜单列表</dt>
            <dd>
                <table border="0" cellpadding="0" cellspacing="0" width="100%" class="table">                    
                    <tr>
                        <th width="50">序号</th>
                        <th>上级菜单</th>
                        <th>菜单名称</th>
                        <th>CLASS名称</th>
                        <th>FUNCITON名称</th>
                        <th>WAY名称</th>
                        <th>级别</th>
                        <th>是否显示</th>
                        <th>排序</th>
                        <th class="last">操作</th>
                    </tr>
                    <?php foreach ($list as $key => $ls) { ?>
                        <tr align="center">
                            <td><?php echo ($key + 1); ?></td>
                            <td align="right">
                                <?php
                                //如果只需要输出$ls['FcateIds'],就都是数字
                                $ids_arr = explode(',', $ls['FcateIds']); //把里面每一个元素都拿出来
                                $html = '';
                                foreach ($ids_arr as $num) {
                                    $html .= $category_arr[$num] . '&nbsp=>&nbsp';
                                    //$category_arr[0] = '顶级';
                                }
                                echo trim($html, '&nbsp=>&nbsp');
                                ?>
                            </td>
                            <td align="right"><?php echo $ls['Fname']; ?></td>
                            <td align="right"><?php echo $ls['Fclass']; ?></td>
                            <td align="right"><?php echo $ls['Ffunction']; ?></td>
                            <td></td>
                            <td><?php echo $ls['Flevel']; ?></td>
                            <td></td>
                            <td><?php echo $ls['Fsort']; ?></td>
                            <td class="font_yanse">
                                <a href="index.php?C=<?php echo trim($_GET['C']); ?>&A=menuModify&current=<?php echo $ls['Fid']; ?>&way=aa&page=<?php echo $page; ?>">修改</a>
                                <a href="index.php?C=<?php echo trim($_GET['C']); ?>&A=<?php echo trim($_GET['A']); ?>&way=delete&current=<?php echo $ls['Fid']; ?>&page=<?php echo $page; ?>" onclick="return confirm('您确定删除该条记录吗？')"  >删除</a>
                            </td>
                        </tr>
                    <?php } ?>
                    <tr>
                        <td colspan="10">
                            <?php
                            $p = new fenyePage($total, $page,$keywords);
                            echo $p->fpage();
                            ?>
                            <form name="form1" method="get" onsubmit="return button()">
                                <input type="hidden" name="C" value="<?php echo trim($_GET['C']); ?>" />
                                <input type="hidden" name="A" value="<?php echo trim($_GET['A']); ?>" />
                                <input id="length" name="page" type="text" value="" class="tee" onkeyup="cheche()">
                                <input id="length1" type="submit" value="GO" class="goto">
                            </form>
                        </td>
                    </tr>
                </table>

            </dd>
        </dl>
    </div>
</div>

<!--<script language="javascript" type="text/javascript">

alert('删除成功！');
</script>-->